package user;

import book.BookList;
import operation.*;

import java.util.Scanner;

public class AdminUser extends User{
    public AdminUser(String name) {
        super(name);
        this.iOperations = new Ioperation[]{
                new Find(),
                new Show(),
                new Add(),
                new Delete(),
                new Exit()
        };
    }

    @Override
    public int menu() {
        System.out.println("================================");
        System.out.println("欢迎 "+this.name);
        System.out.println("请选择你的操作：");
        System.out.println("0.寻找图书");
        System.out.println("1.展示图书");
        System.out.println("2.增加图书");
        System.out.println("3.删除图书");
        System.out.println("4.退出系统");
        System.out.println("请输入你的选择：");
        Scanner in = new Scanner(System.in);
        int choice = in.nextInt();
        return choice;
    }
}
